import { createRouter, createWebHistory } from "vue-router";
import Home from'../components/home/Home.vue'
import Order from'../components/order/Order.vue'
import User from '../components/user/User.vue'
import Login from'../components/login/Login.vue'
import City from'../components/Bannercity/City.vue'

const routes = [
  {
	 path:'/',
	 name:'Home',
	 component:Home
  },
  {
  	 path:'/order',
  	 name:'Order',
  	 component:Order
  },
  {
  	 path:'/user',
  	 name:'User',
  	 component:User
  },
  {
  	 path:'/login',
  	 name:'Login',
  	 component:Login
  },
  {
  	 path:'/city',
  	 name:'City',
  	 component:City
  }
  // {
  // 	 path:'/loginyes',
  // 	 name:'Loginyes',
  // 	 component:Loginyes
  // },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
  scrollBehavior (to, from, savedPosition) {
         
              return { x: 0, y: 0 }
          }
      
});

export default router;





